package com.cjzuji.rental.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
/**
 * @author bag
 * @version V1.0
 * @date 2025/6/13 9:41
 * @since 1.0
 */
@Data
@Accessors(chain = true)  //链式调用 可以连续调用setter方法而不需要每次都创建新的对象实例
@TableName("order_user")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class OrderUser {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "order_id")
    private long orderId;

    @TableField(value = "userName")
    private String userName;

    @TableField(value = "mobile")
    private String mobile;

    @TableField(value = "province")
    private String province;

    @TableField(value = "city")
    private String city;

    @TableField(value = "county")
    private String county;

    @TableField(value = "address")
    private String address;

    @TableField(value = "address_info")
    private String addressInfo;

    @TableField(value = "id_card")
    private String idCard;

    @TableField(value = "id_card_name")
    private String idCardName;

    @TableField(value = "id_card_img")
    private String idCardImg;

    @TableField(value = "id_card_black_img")
    private String idCardBlackImg;

    @TableField(value = "face_img")
    private String faceImg;

    //create_time
    @TableField(value = "create_time")
    private Date createTime;

    //update_time
    @TableField(value = "update_time")
    private Date updateTime;


}
